New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rollup-extras/plugin-binify

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup-extras/plugin-binify

plugin to create cli packages during rollup build

  • 1.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
decreased by-29.31%
Maintainers
1
Weekly downloads
 
Created
Source

Plugin Binify

Rollup plugin to create CLI entry files during the build.

Points:

  • simple
  • respects source maps
  • changes permissions of the file(s)
  • configurable

Changelog

Installation

Using npm:

npm install --save-dev @rollup-extras/plugin-binify

Using yarn:

yarn add --dev @rollup-extras/plugin-binify

Example

Normal usage:

import binify from '@rollup-extras/plugin-binify';

export default {
	input: 'src/index.js',

    output: {
        format: 'cjs',
        dir: 'dest'
    },

	plugins: [binify()],
}

Options

pluginName

Optional, string.

For debugging purposes, so many instances of a plugin can be differentiated in debugging output.

verbose

Optional, boolean.

Bumps loglevel so more messages go through the default logger filter.

shebang

Optional, string.

Default: #!/usr/bin/env node

Override default shebang with something else.

executableFlag

Optional, number | false.

Default: 0o755

Number/string defines permissions for a file, passed to fs.chmod. false (falsy values not working) disables permissions settings.

filter

Optional, (item: OutputAsset | OutputChunk) => boolean.

Default: (item: OutputAsset | OutputChunk) => item.type === 'chunk' && item.isEntry

Filters chunks/assets before applying plugin transformation.

Configuration

type BinifyPluginOptions = {
    pluginName?: string,
    verbose?: boolean,
    shebang?: string,
    executableFlag?: number | string | false,
    filter?: (item: OutputAsset | OutputChunk) => boolean
};

Prior Art

License

MIT

Keywords

FAQs

Package last updated on 11 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc